
#WeaDocument-FileIconView::after, #WeaDocument-FileIconView .WeaDoc-innerScroll::after{
    content: "";
    display: block;
    clear: both;
}

#WeaDocument-FileIconView{

    .WeaDoc-innerScroll{
        .Spin{
            position: absolute;
            bottom: 60px;
            left: 0;
            width: 100%;
        }
        .no-MoreData{
            position: absolute;
            bottom: 70px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 13px;
            color: rgba(0, 0, 0, 0.45);
            user-select: none;
        }
    }
    .WeaDoc-innerScroll.loadPage{
        position: relative;
        padding-bottom: 130px;
    }
    .WeaDoc-innerScroll.noMore{
        position: relative;
        padding-bottom: 100px;
    }

    .ant-alert{
        margin: 0 25px;
        background-color: #ffeee6;
        border: 1px solid #fdc;
    }
    .ant-alert-warning .ant-alert-icon{
        color: #ff9800;
    }
}

//.WeaDoc-FileIconView-dragFiles{
//    width: 145px;
//    border: 1px solid #2DB7F5;
//    box-shadow: 0 0 3px 0 #2DB7F5;
//    background: rgba(205, 232, 255, 0.7);
//    padding: 35px;
//}


.WeaDoc-FileViewItem, .WeaDoc-FileAddItem{
    width:150px;
    height:150px;
    text-align: center;
    float:left;
    margin: 5px 12.5px;
    border:1px solid #FFFFFF;
    background: #FFFFFF;
    position:relative;
    .icon-coms-Collection,.icon-coms-Collection2{
        position: absolute;
        font-size:16px;
        margin-top: 9px;
        margin-left: 120px;
        color:#FFFFFF;
        z-index:1;
    }
    .WeaDoc-Main{
        width:99px;
        height:90px;
        margin: 30px 24.5px;
        text-align: center;
        .fileIcon{
            display: block;
            margin: 0 auto;
            max-width: 100%;
            height: 67px;
            font-size: 67px;
            user-select: none;
        }
        .fileIcon.icon-coms-content-o::before{
            display: block;
            color: white;
            background: rgb(253, 105, 80);
            padding: 10px;
            height: 67px;
            width: 67px;
            border-radius: 6px;
            font-size: 46px;
            margin: 0 auto;
        }
    }
    .WeaDoc-Key{
        display:none;
    }
    .WeaDoc-showName{
        color: #333333;
        margin-top: 6px;
        letter-spacing: -0.08px;
        display: inline-block;
        position: relative;
        word-wrap: break-word;
        word-break: break-all;
        cursor: text;
        min-width: 25px;

        .textname{
            position: relative;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -moz-box;
            display: -webkit-box;
            -ms-box-orient: vertical;
            -moz-box-orient: vertical;
            -webkit-box-orient: vertical;
            -ms-line-clamp: 2;
            -moz-line-clamp: 2;
            -webkit-line-clamp: 2;
        }

        @font-size-list: 12, 14, 16;
        @font12-height: 38px;
        @font14-height: 44px;
        @font16-height: 51.2px;
        @gradient-color: white;
        @base-after-number: 7;
        .show-name-common(@height){
            float: right;
            width: 100%;
            margin-left: -5px;
            max-height: @height + 1;
        }
        .show-before-common(@height){
            content: "";
            float: left;
            width: 5px;
            height: @height;
        }
        .show-after-common(@bottom, @fontSize, @backColor: white){
            content: "...";
            float: right;
            position: relative;
            bottom: ~"@{bottom}px";
            left: 100%;
            width: 30px;
            font-size: ~"@{fontSize}px";
            margin-left: -30px;
            padding-right: 5px;
            background: linear-gradient(to right, transparent, @backColor 45%, @backColor);
            box-sizing: content-box;
            text-align: right;
            transform: translateX(-4px);
            pointer-events: none;
        }

        .font-compatible-loop(1, 7);
        .font-compatible-loop(@i, @base) when (@i <= length(@font-size-list)) {
            @size: extract(@font-size-list, @i);
            @heightStr: "font@{size}-height";
            .forLoopItem(@size, @@heightStr, @base);
            .font-compatible-loop(@i + 1, @base + 1);
        }

        .forLoopItem(@size, @height, @base){
            &.text-@{size}{
                height: @height;
                overflow: hidden;
                .textname{
                    .show-name-common(@height: @height);
                }
                &::before{
                    .show-before-common(@height: @height);
                }
                &::after{
                    .show-after-common(@bottom: @size + @base, @fontSize: @size);
                }
            }
        }

    }

    &.WeaDoc-FileItemSelected{
        background-color: rgba(205, 232, 255, 0.7);
        border: 1px solid #2DB7F5;
    }

    &.WeaDoc-FileItemSelected .WeaDoc-showName::after{
        background: linear-gradient(to right, transparent, rgba(222, 240, 255, 1) 45%, rgba(222, 240, 255, 1));
    }

    .Edit-Icon{
        position: absolute;
        top: 2px;
        right: -20px;
        display: none;
        cursor: pointer;
        &:hover{
            color: #5BB5EF;
        }
    }

    /* 编辑组件相关 */
    .EditName{
        position: absolute;
        top: 107px;
        left: 2px;
        z-index: 1;
        input{
            border-radius: 4px;
            width: 145px;
            height: auto;
        }
        .buttonGroup{
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 5px;
        }
        .buttonGroup > button{
            background-color: white;
            padding: 2px 6px;
            font-weight: bold;
        }
        .buttonGroup > button[disabled]{
            color: #a2a2a2;
            background-color: #f5f5f5;
        }
        .opera-left{
            color: #33c017;
        }
        .opera-right{
            color: #ff6262;
            margin-left: 5px;
        }
        .opera-left:hover{
            border-color: #33c017;
        }
        .opera-right:hover{
            border-color: #ff6262;
        }
        .opera-right[disabled]:hover{
            border-color: #d9d9d9;
        }
    }
    .EditName::after {
        content: '';
        clear: both;
        display: block;
    }


    /* add相关 */
    .WeaDoc-AddMain{
        border:1px dotted #B2B2B2;
        &:hover{
            cursor:pointer;
            background: #F8FCFF;
            border: 1px solid #5BB5EF;
        }
    }
    .WeaDoc-addIcon{
        font-size: 29px;
        color: #5BB5EF;
        padding:30px;
    }


    /* tooltip相关 */
    .WeaDoc-FileItemTitle{
        position: fixed;
        background-color: rgba(55, 55, 55, 0.9);
        border-radius: 6px;
        color: white;
        padding: 7px 10px 8px;
        z-index: 1;
        cursor: auto;
        display: none;
        left: 0;
        top: 0;
        text-align: left;
        max-width: 280px;
        word-break: break-all;
        margin-right: 9px;
    }
}

.WeaDoc-FileViewItem:hover{
    border: 1px solid #2DB7F5;
    box-shadow: 0 0 3px 0 #2DB7F5;
    cursor:pointer;
    .icon-coms-Collection,.icon-coms-Collection2{
       color:#F5A623;
    }
}

.WeaDoc-FileViewItem:hover .Edit-Icon{
    display: block;
}



.WeaDoc-FileViewItem.ctrlX{
    .fileIcon{
        opacity: 0.5;
    }
}

@keyframes TitleShow {
    0%{
        transform: scale(0.5, 0.5) translate(-10%, -10%);
    }

    100%{
        transform: scale(1, 1) translate(0, 0);
    }

}

